package com.yugao.fintech.draper.core.util;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

public class SpringContextHolder extends cn.hutool.extra.spring.SpringUtil implements EnvironmentAware {

	private static Environment environment;

	@Override
	public void setEnvironment(Environment environment) {
		SpringContextHolder.environment = environment;
	}

	public static String getProperty(String key) {
		return SpringContextHolder.environment.getProperty(key);
	}

}
